import request from '@/utils/request'

// 查询服务项目列表
export function listRoutineItem(query) {
  return request({
    url: '/routineItem/routineItem/list',
    method: 'get',
    params: query
  })
}

// 查询服务项目详细
export function getRoutineItem(id) {
  return request({
    url: '/routineItem/routineItem/' + id,
    method: 'get'
  })
}

// 新增服务项目
export function addRoutineItem(data) {
  return request({
    url: '/routineItem/routineItem',
    method: 'post',
    data: data
  })
}

// 修改服务项目
export function updateRoutineItem(data) {
  return request({
    url: '/routineItem/routineItem',
    method: 'put',
    data: data
  })
}

// 删除服务项目
export function delRoutineItem(id) {
  return request({
    url: '/routineItem/routineItem/' + id,
    method: 'delete'
  })
}


// 关联技师外层
export function seletItem(data) {
  return request({
    url: '/routineItem/routineItem/selectRelevancyTechnician',
    method: 'post',
	data: data
  })
}
// 关联技师内层
export function seletRoutineItem(data) {
  return request({
    url: '/routineItem/routineItem/selectTechnicianList',
    method: 'post',
	data: data
  })
}
// 添加关联技师
export function seletAddItem(data) {
  return request({
    url: '/routineItem/routineItem/addTechnician',
    method: 'post',
	data: data
  })
}
// 取消关联技师
export function upDataItem(data) {
  return request({
    url: '/routineItem/routineItem/updateTechnician',
    method: 'post',
	data: data
  })
}


// 查询新增服务技师关联列表
export function selectAllFromItem(data) {
  return request({
    url: '/routineItem/routineItem/selectIsSelectTechnicianList',
    method: 'post',
	data: data
  })
}
// 新增服务技师关联列表
export function selectAllDataItem(data) {
  return request({
    url: '/routineItem/routineItem/selectAllTechnicianList',
    method: 'post',
	data: data
  })
}



